package com.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.bean.TicketBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

//neme 表示要调用服务的名称，而path为调用服务controller的命名空间
@FeignClient(name = "houseServer",path = "/ticket")
public interface ICinemaService {
//    @RequestMapping("/changeNum/{num}")
//    public String changeNum(@PathVariable("num") Integer num);
    @RequestMapping("findByItem")
    public Page<TicketBean> findByItem(@RequestParam("pageNO") Integer pageNO,
                                       @RequestParam("movieName")  String movieName,
                                       @RequestParam("cinema")  String cinema,
                                       @RequestParam("seriesName")  String seriesName,
                                       @RequestParam("row") String row);
}
